<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AdaPaySdk;

class AdapayTools extends \AdaPay\AdaPay
{
    public $endpoint = "/v1/bill/download";
    public $union_endpoint = "/v1/union/user_identity";
    private static $instance;
    public function __construct()
    {
        parent::__construct();
    }
    public function download($bill_date)
    {
        $params["bill_date"] = $bill_date;
        $request_params = $params;
        $request_params = $this->do_empty_data($request_params);
        $req_url = $this->gateWayUrl . $this->endpoint;
        $header = $this->get_request_header($req_url, $request_params, \AdaPay\AdaPay::$header);
        $this->result = $this->ada_request->curl_request($req_url, $request_params, $header, $is_json = true);
    }
    public function unionUserId($params = [])
    {
        $request_params = $params;
        $request_params = $this->do_empty_data($request_params);
        $req_url = $this->gateWayUrl . $this->union_endpoint;
        $header = $this->get_request_header($req_url, $request_params, self::$header);
        $this->result = $this->ada_request->curl_request($req_url, $request_params, $header, $is_json = true);
    }
    public function verifySign($params_str = "", $sign = "")
    {
        return $this->ada_tools->verifySign($sign, $params_str);
    }
}

?>